package com.qlp.start.Task;

import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author itoutsource.cz10
 * 基于注解开启定时任务
 */
@Component
@Configuration
@EnableScheduling  //开启定时任务
public class StaticScheduleTask {

//    @Scheduled(cron = "0/5 * * * * ?")
//    public void testTask() {
//        System.out.println("------------------------------");
//    }
}
